package com.fishery.processing.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.fishery.processing.entity.Product;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fishery.processing.entity.client.OrderVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ${author}
 * @since 2021-01-14
 */
public interface ProductService extends IService<Product> {

    public int createProduct(Product product);

    public int deleteProduct(String productId);

    public int updateProduct(Product product);

    public Product searchProductById(String productId);

    public IPage<Product> searchProductOfFactory(String factoryId, Integer page, Integer size);

    public List<Product> searchProductOfFactory(String factoryId);

    public int addCraft(String productId,String craftId,Integer sort);

    public int deleteCraft(String productId,Integer sort);

    public int updateCraft(String productId,String craftId,Integer sort);
}
